home *** CD-ROM | disk | FTP | other *** search
/ US Department of Defense…ndamentals 1.0 2004 April / US Department of Defense: Firewall & Router Fundamentals 1.0 2004 April.iso / sco / interface / map.swf / scripts / DefineButton2_115 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2004-03-29  |  574 bĀ   |  22 lines

  1. on(release){
  2.    getURL("javascript:alert(" + _root.current_sco + ");","");
  3.    if(_root.current_sco == "0")
  4.    {
  5.       getUrl("javascript:goto_menu();", "");
  6.    }
  7.    else
  8.    {
  9.       temp_current_sco = _root.current_sco;
  10.       temp_cs = String(temp_current_sco);
  11.       if(temp_cs.length < 2)
  12.       {
  13.          temp_load_sco = "sco00" + temp_cs;
  14.       }
  15.       else if(temp_cs.length < 3)
  16.       {
  17.          temp_load_sco = "sco0" + temp_cs;
  18.       }
  19.       getURL("javascript:menu_run_sco(\'" + temp_load_sco + "\'," + _root.current_sco + ");","_self");
  20.    }
  21. }
  22.